import {
    request,
} from "./request";

// 首页swiper
export function getMoviesSwiperAPI(params) {
    return request({
        url: "https://m.maizuo.com/gateway",
        params,
        headers: {
            "X-Host": "mall.cfg.common-banner"
        }
    })
}
// 首页/NowPlaying
export function getNowPlayingAPI(params) {
    return request({
        url: "https://m.maizuo.com/gateway",
        params,
        headers: {
            "X-Host": "mall.film-ticket.film.list"
        }
    })
}
// 首页/ComingSoon
export function getComingSoonAPI(params) {
    return request({
        url: "https://m.maizuo.com/gateway",
        params,
        headers: {
            "X-Host": "mall.film-ticket.film.list"
        }
    })
}
// 详情页
export function getDetailAPI(params) {
    return request({
        url: "https://m.maizuo.com/gateway",
        params,
        headers: {
            "X-Host": "mall.film-ticket.film.info"
        }
    })
}

// 电影院
export function getCinemaAPI(params) {
    return request({
        url: "https://m.maizuo.com/gateway",
        params,
        headers: {
            "X-Host": "mall.film-ticket.cinema.list"
        }
    })
}